Optimal. Leaf size=131 \[ \frac {a+b x}{(b d-a e) (d+e x) \sqrt {a^2+2 a b x+b^2 x^2}}+\frac {b (a+b x) \log (a+b x)}{(b d-a e)^2 \sqrt {a^2+2 a b x+b^2 x^2}}-\frac {b (a+b x) \log (d+e x)}{(b d-a e)^2 \sqrt {a^2+2 a b x+b^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 131, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {660, 46}
\begin {gather*} \frac {a+b x}{\sqrt {a^2+2 a b x+b^2 x^2} (d+e x) (b d-a e)}+\frac {b (a+b x) \log (a+b x)}{\sqrt {a^2+2 a b x+b^2 x^2} (b d-a e)^2}-\frac {b (a+b x) \log (d+e x)}{\sqrt {a^2+2 a b x+b^2 x^2} (b d-a e)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rule 660
Rubi steps
\begin {align*} \int \frac {1}{(d+e x)^2 \sqrt {a^2+2 a b x+b^2 x^2}} \, dx &=\frac {\left (a b+b^2 x\right ) \int \frac {1}{\left (a b+b^2 x\right ) (d+e x)^2} \, dx}{\sqrt {a^2+2 a b x+b^2 x^2}}\\ &=\frac {\left (a b+b^2 x\right ) \int \left (\frac {b}{(b d-a e)^2 (a+b x)}-\frac {e}{b (b d-a e) (d+e x)^2}-\frac {e}{(b d-a e)^2 (d+e x)}\right ) \, dx}{\sqrt {a^2+2 a b x+b^2 x^2}}\\ &=\frac {a+b x}{(b d-a e) (d+e x) \sqrt {a^2+2 a b x+b^2 x^2}}+\frac {b (a+b x) \log (a+b x)}{(b d-a e)^2 \sqrt {a^2+2 a b x+b^2 x^2}}-\frac {b (a+b x) \log (d+e x)}{(b d-a e)^2 \sqrt {a^2+2 a b x+b^2 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 69, normalized size = 0.53 \begin {gather*} \frac {(a+b x) (b d-a e+b (d+e x) \log (a+b x)-b (d+e x) \log (d+e x))}{(b d-a e)^2 \sqrt {(a+b x)^2} (d+e x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.56, size = 81, normalized size = 0.62
method | result | size |
default | \(\frac {\left (b x +a \right ) \left (\ln \left (b x +a \right ) b e x -\ln \left (e x +d \right ) b e x +\ln \left (b x +a \right ) b d -\ln \left (e x +d \right ) b d -a e +b d \right )}{\sqrt {\left (b x +a \right )^{2}}\, \left (a e -b d \right )^{2} \left (e x +d \right )}\) | \(81\) |
risch | \(-\frac {\sqrt {\left (b x +a \right )^{2}}}{\left (b x +a \right ) \left (a e -b d \right ) \left (e x +d \right )}-\frac {\sqrt {\left (b x +a \right )^{2}}\, b \ln \left (e x +d \right )}{\left (b x +a \right ) \left (a^{2} e^{2}-2 a b d e +b^{2} d^{2}\right )}+\frac {\sqrt {\left (b x +a \right )^{2}}\, b \ln \left (-b x -a \right )}{\left (b x +a \right ) \left (a^{2} e^{2}-2 a b d e +b^{2} d^{2}\right )}\) | \(135\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.52, size = 97, normalized size = 0.74 \begin {gather*} \frac {b d - a e + {\left (b x e + b d\right )} \log \left (b x + a\right ) - {\left (b x e + b d\right )} \log \left (x e + d\right )}{b^{2} d^{3} + a^{2} x e^{3} - {\left (2 \, a b d x - a^{2} d\right )} e^{2} + {\left (b^{2} d^{2} x - 2 \, a b d^{2}\right )} e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 233 vs.
\(2 (90) = 180\).
time = 0.37, size = 233, normalized size = 1.78 \begin {gather*} - \frac {b \log {\left (x + \frac {- \frac {a^{3} b e^{3}}{\left (a e - b d\right )^{2}} + \frac {3 a^{2} b^{2} d e^{2}}{\left (a e - b d\right )^{2}} - \frac {3 a b^{3} d^{2} e}{\left (a e - b d\right )^{2}} + a b e + \frac {b^{4} d^{3}}{\left (a e - b d\right )^{2}} + b^{2} d}{2 b^{2} e} \right )}}{\left (a e - b d\right )^{2}} + \frac {b \log {\left (x + \frac {\frac {a^{3} b e^{3}}{\left (a e - b d\right )^{2}} - \frac {3 a^{2} b^{2} d e^{2}}{\left (a e - b d\right )^{2}} + \frac {3 a b^{3} d^{2} e}{\left (a e - b d\right )^{2}} + a b e - \frac {b^{4} d^{3}}{\left (a e - b d\right )^{2}} + b^{2} d}{2 b^{2} e} \right )}}{\left (a e - b d\right )^{2}} - \frac {1}{a d e - b d^{2} + x \left (a e^{2} - b d e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.16, size = 103, normalized size = 0.79 \begin {gather*} {\left (\frac {b^{2} \log \left ({\left | b x + a \right |}\right )}{b^{3} d^{2} - 2 \, a b^{2} d e + a^{2} b e^{2}} - \frac {b e \log \left ({\left | x e + d \right |}\right )}{b^{2} d^{2} e - 2 \, a b d e^{2} + a^{2} e^{3}} + \frac {1}{{\left (b d - a e\right )} {\left (x e + d\right )}}\right )} \mathrm {sgn}\left (b x + a\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{\sqrt {{\left (a+b\,x\right )}^2}\,{\left (d+e\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________